<template>
  <div class="buy">
    <h1>
      <img @click="returned" src="../../assets/left/left.png" alt />
      结算
    </h1>
    <div class="address">
      <div class="address_icon">
        <van-icon name="location-o" color="white" size="30" />
      </div>
      <div>
        <div>张三 &nbsp; 13035059860</div>
        <div>安徽省合肥市xxxxx</div>
      </div>
      <div class="otheraddress" @click="goAddress">其他地址</div>
    </div>

    <!-- <div class="addressing">
      <table>
        <tr>
          <td>
            <input type="checkbox" />
          </td>
          <td>
            <p>张三 &nbsp; 13035059860</p>
            <p>安徽省合肥市xxxxx</p>
          </td>
          <td>
            <van-icon name="edit" size="28" />
          </td>
        </tr>
      </table>
    </div> -->
    <div class="content">
      <div class="content_img">
        <img src="../../assets/cart/index-ph01.png" alt />
      </div>
      <div class="content_right">
        <p>超级大品牌服装，现在够买只要998</p>
        <div class="content_style">
          <div>
            <div>颜色：经典绮丽款</div>
            <div>尺寸：M</div>
          </div>
          <div>
            <b>&yen; 32.00</b>
            <div>x3</div>
          </div>
        </div>
      </div>
    </div>

    <div class="explain">
      <div>运费</div>
      <div>包邮</div>
    </div>
    <div class="explain">
      <div>商品总额</div>
      <div>&yen;98.00</div>
    </div>

    <textarea name id cols="30" rows="10" placeholder="给买家留言（50字以内）"></textarea>

    <div class="bottom">
      <h3>
        总金额
        <span>&yen;98.00</span>
      </h3>
      <button>去付款</button>
    </div>
  </div>
</template>

<script>
export default {
  props: {},
  data() {
    return {};
  },
  computed: {},
  created() {},
  mounted() {},
  watch: {},
  methods: {
    returned() {
      this.$router.go(-1);
    },
    goAddress() {
      this.$router.push({path:'/goaddress'})
    }
  },
  components: {}
};
</script>

<style scoped lang='less'>
.buy {
  height: 100%;
  margin-bottom: 130px;
  h1 {
    text-align: center;
    margin: 10px 0;
    position: relative;
    img {
      width: 13px;
      position: absolute;
      left: 24px;
      top: 10px;
    }
  }
  .address {
    padding: 20px;
    background-color: rgb(99, 99, 99);
    display: flex;
    position: relative;
    .address_icon {
      line-height: 82px;
    }
    div {
      padding: 5px;
      color: white;
      font-weight: 400;
      font-size: 1rem;
    }
    .otheraddress {
      color: rgb(252, 117, 117);
      position: absolute;
      bottom: 1.3rem;
      right: 1.6rem;
      padding: 0px;
      margin: 0px;
    }
  }
  .addressing {
    width: 100%;
    table {
      width: 100%;
      height: 8rem;
      tr {
        border-bottom: 1px solid gray;
        td {
          font-size: 1rem;
          input {
            margin-left: 20px;
            transform: scale(2, 2);
          }
        }
      }
    }
  }
  .content {
    display: flex;
    padding: 15px;
    .content_img {
      width: 30%;
      padding-right: 10px;
      img {
        width: 100%;
      }
    }
    .content_right {
      p {
        font-size: 18px;
      }
      .content_style {
        display: flex;
        justify-content: space-between;
        b {
          font-size: 20px;
          color: red;
        }
        div {
          margin: 2px 0;
          opacity: 0.8;
        }
      }
    }
  }
  .explain {
    display: flex;
    justify-content: space-between;
    margin: 10px 18px;
    font-size: 15px;
    line-height: 50px;
  }
  textarea {
    width: 90%;
    height: 100px;
    padding: 10px;
    display: block;
    margin: 10px auto;
  }

  .bottom {
    width: 100%;
    position: fixed;
    bottom: 0px;
    background-color: #fff;
    h3 {
      text-align: center;
      padding: 10px;
      span {
        color: rgb(250, 109, 109);
        font-size: 25px;
      }
    }
    button {
      width: 90%;
      display: block;
      margin: 0 auto;
      border: none;
      background-color: #fc605a;
      font-size: 1.2em;
      color: #fff;
      padding: 4% 0;
      border-radius: 0.4em;
    }
  }
}
</style>
